Skip to content

i18n: replace Chinese string literals with English in agent.ts#57

Merged
CrazyBoyM merged 1 commit into
shareAI-lab:mainfrom
kirillreutski:fix/english-strings
Jul 10, 2026
Merged

i18n: replace Chinese string literals with English in agent.ts#57
CrazyBoyM merged 1 commit into
shareAI-lab:mainfrom
kirillreutski:fix/english-strings

Conversation

@kirillreutski

Copy link
Copy Markdown
Contributor

Problem

src/core/agent.ts contains 38 string literals written in Chinese — error messages, recommendations, and diagnostic text surfaced to developers and agent consumers. This makes the SDK inaccessible to non-Chinese-speaking users and hard to debug in international teams.

Changes

All Chinese strings in src/core/agent.ts translated to English:

  • Tool error recommendations (确认工具是否已注册Check if the tool is registered, etc.)
  • Session seal messages (会话中断,系统已自动封口session sealed automatically, etc.)
  • Recovery suggestions for tool validation, permission, timeout, and filesystem errors
  • Bash/command error guidance

No logic changes — purely string content.

@CrazyBoyM
CrazyBoyM merged commit a90f9a5 into shareAI-lab:main Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants